<!---->
<%= form_for(:session, :url => {:action => 'update'}, :method => 'put', :html => {:class=>'form-horizontal'}) do |t| %>
	<fieldset>
		<legend>帐号信息修改</legend>
  <div class="control-group">
    <label class="control-label">登录名</label>
    <div class="controls">
    <%= t.text_field :login, :value => @myinfo.login, :readonly => true %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">密码</label>
    <div class="controls">
    <%= t.password_field :password, :placeholder => '不修改,请留空!' %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">确认密码</label>
    <div class="controls">
    <%= t.password_field :password_confirmation %>
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
      <input type="hidden" id="id" name="id" value="<%= @myinfo.id %>">
      <button type="submit" class="btn">修改</button>
    </div>
  </div>
</fieldset>
<% end %>
<!---->
